projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed9d216
)
mx35: generic: Let get_reset_cause be defined only when CONFIG_DISPLAY_CPUINFO is...
author
Fabio Estevam
<
[email protected]
>
Fri, 10 Feb 2012 05:34:03 +0000
(
05:34
+0000)
committer
Albert ARIBAUD
<
[email protected]
>
Mon, 27 Feb 2012 20:19:24 +0000
(21:19 +0100)
get_reset_cause() function is only used inside print_cpuinfo(), so let it be
defined only when CONFIG_DISPLAY_CPUINFO is selected.
Signed-off-by: Fabio Estevam <
[email protected]
>
arch/arm/cpu/arm1136/mx35/generic.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm1136/mx35/generic.c
b/arch/arm/cpu/arm1136/mx35/generic.c
index d41613e57f27f767fecdac19baacb02a47dccb18..986b1f94632ad87b1dc234da0a200f89f7e5c362 100644
(file)
--- a/
arch/arm/cpu/arm1136/mx35/generic.c
+++ b/
arch/arm/cpu/arm1136/mx35/generic.c
@@
-422,6
+422,7
@@
U_BOOT_CMD(
""
);
+#if defined(CONFIG_DISPLAY_CPUINFO)
static char *get_reset_cause(void)
{
/* read RCSR register from CCM module */
@@
-444,7
+445,6
@@
static char *get_reset_cause(void)
}
}
-#if defined(CONFIG_DISPLAY_CPUINFO)
int print_cpuinfo(void)
{
u32 srev = get_cpu_rev();